{include file="common/header.tpl"}
<section class="main">
    <nav class="left-col">
        {include file="common/navi-system.tpl"}
    </nav>
    <article class="right-col">
        <h2><a href="{$smarty.const.HOST_BACKEND}admin/index">Thành viên Ban Quản Trị</a> &raquo; Cập nhật</h2>            
        <form name="frmEdit" id="frmEdit" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}admin/save" class="ui">
            {if $AppUI->type == 1}
                <input type="hidden" value="{$row.type}" id="ptype" name="ptype" />
            {/if}
            <input type="hidden" name="pusername" id="pusername" value="{$objAdmin->username|escape}"/>
            <input type="hidden" name="padminid" id="padminid" value="{$objAdmin->id|escape}"/>
            <ul>
            	<li>
                	<label for="pusername">Username:</label>
                	<strong class="hint">{$objAdmin->username|escape}</strong>
                </li>
                
                <li>
                	<label for="ppassword">Mật khẩu:</label>
                    <div class="txt">
		                <input type="password" class="text" name="ppassword" id="ppassword" value="" />
                	</div>
                </li>
                <li>
                	<label for="ppassword_confirm">Xác nhận mật khẩu:</label>
                    <div class="txt">
		            	<input type="password" class="text" name="ppassword_confirm" id="ppassword_confirm" value="" />
                	</div>
                </li>
                <li>
                	<label for="pfullname">Họ &amp; tên:</label>
                    <div class="txt">
                		<input type="text" class="text" name="pfullname" id="pfullname" value="{if isset($smarty.session.post.pfullname)}{$smarty.session.post.pfullname|escape}{else}{$objAdmin->fullname|escape}{/if}" />
                    </div>
                </li>
                {if $AppUI->type > 1}
                    <li>
                        <label for="pfullname">Loại thành viên quản trị:</label>
                        <div class="sel">
                            <select name="ptype" id="ptype">
                                {if isset($smarty.session.post.ptype)}
                                    {html_options options=$arrType selected=$smarty.session.post.ptype}
                                {else}
                                    {html_options options=$arrType selected=$objAdmin->type}
                                {/if}
                            </select>
                        </div>
                    </li>
                {/if}
                <li>
                	<button type="submit"><strong>Lưu dữ liệu</strong></button>
                	<button type="reset"><strong>Nhập lại</strong></button>
                </li>
            </ul>
        </form>
    </article>
</section>
{include file="common/footer.tpl"}
                
